<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type">
    <meta charset="utf-8">
    <title>{{$data.title}} - 后台管理</title>
    <link href="{{$smarty.const.APP_URL}}templates/admin/css/admin.css" type="text/css" rel="stylesheet">
    <link href="{{$smarty.const.APP_URL}}templates/admin/js/artDialog/black.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="{{$smarty.const.APP_URL}}templates/admin/js/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="{{$smarty.const.APP_URL}}templates/admin/js/jquery.cookie.js"></script>
    <script type="text/javascript" src="{{$smarty.const.APP_URL}}templates/admin/js/artDialog/jquery.artDialog.min.js"></script>
    <script type="text/javascript" src="{{$smarty.const.APP_URL}}templates/admin/js/admin.js"></script>
    <script type="text/javascript">
        var this_uri = "/admin_user/index";
    </script>
</head>
<body>

<div id="header">
    <div class="logo"><a href="/"><img src="{{$smarty.const.APP_URL}}templates/admin/images/logo.png" title="后台首页"></a></div>
    <div class="loading"><div id="ajax-loader" title="Ajax数据更新中..."></div></div>
    <div id="topbar">
        <!--顶部菜单 start-->
        {{include file="{{$smarty.const.APP_PATH}}Admin/View/public/topmenu.html"}}
        <!--顶部菜单 end-->
        <!--顶部右侧 start-->
        {{include file="{{$smarty.const.APP_PATH}}Admin/View/public/topuser.html"}}
        <!--顶部右侧 end-->
        <div></div>
    </div>
</div>

<div><!-- 外层添加一个DIV解决IE8下margin-top的问题 -->
    <table id="maintable" cellpadding="0" cellspacing="0">
        <tbody><tr>
            <!--左侧菜单 start-->
            {{include file="{{$smarty.const.APP_PATH}}Admin/View/public/leftmenu.html"}}
            <!--左侧菜单 end-->
            <!--主要TD start-->
            <td class="maintd" valign="top">
                <div class="maindiv">
                    <div id="main">
                        <div class="itemtitle">
                            <h3>添加后台用户</h3>
                            <ul>
                                <a class="link-btn link-live" href="/admin_user/user_add">添加后台用户</a>
                                <a class="link-btn" href="/admin_user/index">后台用户列表</a>
                            </ul>
                        </div>
                        <form action="/admin_user/user_add_post" method="post" enctype="multipart/form-data">
                            <table class="tb">
                                <tbody>
                                <tr>
                                    <td class="tbheader" colspan="38">填写后台用户信息</td>
                                </tr>
                                <tr>
                                    <td class="td">
                                        <b>所属用户组:</b>
                                    </td>
                                    <td class="td last">
                                        <select name="admin_group_id">
                                            {{foreach from=$admin_group_list key=k item=i}}
                                            <option value="{{$i.admin_group_id}}" {{if $i.admin_group_id==2}}selected{{/if}}>{{$i.admin_group_name}}</option>
                                            {{/foreach}}
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="td">
                                        <b>用户名:</b>
                                    </td>
                                    <td class="td last">
                                        <input type="text" size="20" value="" name="admin_name">
                                        <font class="red">* 必填项</font>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="td">
                                        <b>密码:</b>
                                    </td>
                                    <td class="td last">
                                        <input type="password" size="20" name="admin_passwd">
                                        <font class="red">* 必填项</font>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="td">
                                        <b>确认密码:</b>
                                    </td>
                                    <td class="td last">
                                        <input type="password" size="20" name="re_admin_passwd">
                                        <font class="red">* 必填项</font>
                                    </td>
                                </tr>
                                <!--<tr>
                                    <td class="td">
                                        <b>真实姓名:</b>
                                    </td>
                                    <td class="td last">
                                        <input type="text" size="20" value="" name="member_truename">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="td">
                                        <b>性别:</b>
                                        <br>
                                        请选择会员性别.
                                    </td>
                                    <td class="td last">
                                        <input id="Radio_settings[siteActived]0" type="radio" checked="checked" value="1" name="member_sex">
                                        <label for="Radio_settings[siteActived]0">男</label>
                                        <input id="Radio_settings[siteActived]1" type="radio" value="2" name="member_sex">
                                        <label for="Radio_settings[siteActived]1">女</label>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="td">
                                        <b>头像:</b>
                                        <br>
                                        请上传用户头像
                                    </td>
                                    <td class="td last">
                                        <input type="file" name="member_avatar" style="width:292px;">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="td">
                                        <b>电子邮箱:</b>
                                        <br>
                                        请输入电子邮箱
                                    </td>
                                    <td class="td last">
                                        <input type="text" value="{{$setting_info.email}}" name="member_email" style="width:292px;">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="td">
                                        <b>手机号码:</b>
                                        <br>
                                        请输入手机号码
                                    </td>
                                    <td class="td last">
                                        <input type="text" value="{{$setting_info.email}}" name="member_mobile" style="width:292px;">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="td">
                                        <b>联系地址:</b>
                                        <br>
                                        请输入联系地址
                                    </td>
                                    <td class="td last">
                                        <input type="text" value="{{$setting_info.email}}" name="member_address" style="width:292px;">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="td">
                                        <b>邮编:</b>
                                        <br>
                                        请输入邮编
                                    </td>
                                    <td class="td last">
                                        <input type="text" value="{{$setting_info.email}}" name="member_zipcode" style="width:292px;">
                                    </td>
                                </tr>-->
                                </tbody>
                            </table>
                            <div class="submit">
                                <input class="save" type="submit" value="添加用户" name="save">
                            </div>
                        </form>
                        <!--底部信息 start-->
                        {{include file="{{$smarty.const.APP_PATH}}Admin/View/public/sysinfo.html"}}
                        <!--底部信息 end-->
                    </div>
                </div>
            </td>
            <!--主要TD end-->
        </tr>
        </tbody></table>
</div>

<script type="text/javascript">
    jQuery(document).ready(function() {
        //调整高度
        $("#container").height($(window).height()-40);
        $(window).resize(function() {
            $("#container").height($(window).height()-40);
        });

        App.init();//左侧菜单初始化

        var a101 = $("#topbar"); //顶部下接菜单
        a101.find("dl").Jdropdown({delay: 0}, function(a){});

        //全选checkbox
        $("#checkAll").click(function(e){
            $("input[name='" + $(this).attr("for") + "']").attr("checked", this.checked);
        });
    });
</script>
</body>
</html>